<?php

require "conn.php";

$user=$_POST['user'];
$pass=$_POST['pass'];

$result=$conn->query("select * from usertable where username='$user' and password='$pass' ");

if($result->fetch_assoc()){
    echo true;
}else{
    echo '2';
}


